// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_APPLICATION
// * CreateDate    : 2014-06-05 18:30:31
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:31
// * LastChanger   : 2014-06-05 18:30:31
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class RepApplicationTable : TableInfo
    {
		public const string C_TableName = "REP_APPLICATION";
		
		public const string C_REP_APPLICATION_ID = "REP_APPLICATION_ID";
		public const string C_REP_APPLICATION_CODE = "REP_APPLICATION_CODE";
		public const string C_RELATED_ORDER_ID = "RELATED_ORDER_ID";
		public const string C_RELATED_ORDER_TYPE = "RELATED_ORDER_TYPE";
		public const string C_APPLICATION_BY = "APPLICATION_BY";
		public const string C_APPLICATION_DPT = "APPLICATION_DPT";
		public const string C_CREATE_DATE = "CREATE_DATE";
		public const string C_CREATE_BY = "CREATE_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_APPOVED_BY = "APPOVED_BY";
		public const string C_STATUS = "STATUS";
		public const string C_REMARK = "REMARK";
		
		public RepApplicationTable()
        {
            _tableName = "REP_APPLICATION";
        }
		
		protected static RepApplicationTable _current;
        public static RepApplicationTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new RepApplicationTable();

            _current.Add(C_REP_APPLICATION_ID, new ColumnInfo(C_REP_APPLICATION_ID,"RepApplicationId", true, typeof(string)));
            _current.Add(C_REP_APPLICATION_CODE, new ColumnInfo(C_REP_APPLICATION_CODE,"RepApplicationCode", false, typeof(string)));
            _current.Add(C_RELATED_ORDER_ID, new ColumnInfo(C_RELATED_ORDER_ID,"RelatedOrderId", false, typeof(string)));
            _current.Add(C_RELATED_ORDER_TYPE, new ColumnInfo(C_RELATED_ORDER_TYPE,"RelatedOrderType", false, typeof(string)));
            _current.Add(C_APPLICATION_BY, new ColumnInfo(C_APPLICATION_BY,"ApplicationBy", false, typeof(string)));
            _current.Add(C_APPLICATION_DPT, new ColumnInfo(C_APPLICATION_DPT,"ApplicationDpt", false, typeof(string)));
            _current.Add(C_CREATE_DATE, new ColumnInfo(C_CREATE_DATE,"CreateDate", false, typeof(DateTime)));
            _current.Add(C_CREATE_BY, new ColumnInfo(C_CREATE_BY,"CreateBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPOVED_BY, new ColumnInfo(C_APPOVED_BY,"AppovedBy", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo REP_APPLICATION_ID
        {
            get { return this[C_REP_APPLICATION_ID]; }
        }
		
		public ColumnInfo REP_APPLICATION_CODE
        {
            get { return this[C_REP_APPLICATION_CODE]; }
        }
		
		public ColumnInfo RELATED_ORDER_ID
        {
            get { return this[C_RELATED_ORDER_ID]; }
        }
		
		public ColumnInfo RELATED_ORDER_TYPE
        {
            get { return this[C_RELATED_ORDER_TYPE]; }
        }
		
		public ColumnInfo APPLICATION_BY
        {
            get { return this[C_APPLICATION_BY]; }
        }
		
		public ColumnInfo APPLICATION_DPT
        {
            get { return this[C_APPLICATION_DPT]; }
        }
		
		public ColumnInfo CREATE_DATE
        {
            get { return this[C_CREATE_DATE]; }
        }
		
		public ColumnInfo CREATE_BY
        {
            get { return this[C_CREATE_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo APPOVED_BY
        {
            get { return this[C_APPOVED_BY]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

